package com.yjd.comm.auth.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.auth.model.LivingBodyAuthModel;

import java.util.Map;

/**
 * <b>description</b>：活体认证订单表业务接口<br>
 * <b>time</b>：2018-02-08 16:39:28 <br>
 * <b>author</b>：  carl
 */
public interface ILivingBodyAuthService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public LivingBodyAuthModel insert(LivingBodyAuthModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(LivingBodyAuthModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

	/**
	 * 认证回调通知
	 * @param user_id
	 * @param bus_type
	 * @param id
	 * @throws Exception
	 */
	public void authCallback(Long user_id,Integer bus_type,Long id,Integer result)throws Exception;

	public int updateByMap(Map parm)throws Exception;

}
